<template>
  <div class="mb-10px">
    <slot name="toolBar"></slot>
    <ElButton class="mr-2 bottom-0 float-right" size="small" circle @click="showSearch">
      <Icon icon="ep:search" />
    </ElButton>
    <ElButton class="mr-2 bottom-0 float-right" size="small" circle @click="reload">
      <Icon icon="ep:refresh-right" />
    </ElButton>
  </div>
</template>
<script setup lang="ts">
import { ElButton } from 'element-plus'

const emit = defineEmits(['showSearch', 'reload'])

const reload = () => {
  emit('reload')
}

const showSearch = () => {
  emit('showSearch')
}
</script>
